#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using  namespace std;


class A
{
	friend ostream& operator<<(ostream& cout, const A& a);
public:
	A(int x = 0,int y = 0)
	:_x(x),
	 _y(y)
	{}
private:
	int _x;
	int _y;
};

ostream& operator<<(ostream& cout, const A& a)
{
	cout << a._x << " and " << a._y;
	return cout;
}


int main()
{
	A b;
	A a(1, 2);
	cout << a << endl;
	return 0;
}